package model

type RoleConfig struct {
	Model
	Name   string      `gorm:"comment:角色名称;type:VARCHAR(255)"`
	IsRoot int         `gorm:"comment:是否是root;type:TINYINT(4)"`
	Status LimitStatus `gorm:"comment:状态 0-ok 1-锁定;type:TINYINT(4)"`
	Memo   string      `gorm:"comment:备注;type:VARCHAR(255)"`
}

type RoleMenuAction struct {
	Id       int `gorm:"primarykey"`
	RoleId   int `gorm:"comment:角色ID;type:INT(11);uniqueIndex:IDX_ROLE_ACTION"`
	MenuId   int `gorm:"comment:菜单ID;type:INT(11)"`
	ActionId int `gorm:"comment:功能ID;type:INT(11);uniqueIndex:IDX_ROLE_ACTION"`
}
